﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMaster.Master" AutoEventWireup="true" CodeBehind="ChangePass.aspx.cs" Inherits="MyWeb.Admin.ChangePass" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="pnUpdate" runat="server">
        <table class="TableUpdate" border="1">
            <tr>
                <td class="Control" colspan="2">
                    <ul>
                        <li>
                            <asp:LinkButton CssClass="uupdate" ID="lbtUpdateT" runat="server" onclick="Update_Click">Ghi lại</asp:LinkButton>
                        </li>
                        <li>
                            <asp:LinkButton CssClass="uback" ID="lbtBackT" runat="server" CausesValidation="False">Trở về</asp:LinkButton>
                        </li>
                    </ul>
                </td>
            </tr>
            <tr>
                <th colspan="2" style="color:Red; text-align:center"><asp:Literal ID="ltrMessage" runat="server"></asp:Literal></th>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lblUsername" runat="server" Text="Tên đăng nhập:"></asp:Label>
                </th>
                <td>
                    <asp:TextBox ID="txtUsername" runat="server" CssClass="datetime" 
                        Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lblPassword" runat="server" Text="Mật khẩu:"></asp:Label>
                </th>
                <td>
                    <asp:TextBox ID="txtPassword" runat="server" CssClass="datetime" 
                        TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPassword" runat="server" 
                        ControlToValidate="txtPassword" Display="Dynamic" ErrorMessage="*" 
                        SetFocusOnError="True"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <th>
                    <asp:Label ID="lblOrd" runat="server" Text="Nhập lại mật khẩu:"></asp:Label>
                </th>
                <td>
                    <asp:TextBox ID="txtPassword2" runat="server" CssClass="datetime" 
                        TextMode="Password" />
                    <asp:RequiredFieldValidator ID="rfvPassword2" runat="server" 
                ControlToValidate="txtPassword2" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="cpvPassword" runat="server" ControlToValidate="txtPassword" ControlToCompare="txtPassword2" Display="Dynamic" ErrorMessage="Mật khẩu nhập lại không đúng"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td class="Control" colspan="2">
                    <ul>
                        <li>
                            <asp:LinkButton CssClass="uupdate" ID="lbtUpdateB" runat="server" onclick="Update_Click">Ghi lại</asp:LinkButton>
                        </li>
                        <li>
                            <asp:LinkButton CssClass="uback" ID="lbtBackB" runat="server" CausesValidation="False">Trở về</asp:LinkButton>
                        </li>
                    </ul>
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
